from sys import argv                        #导入argv包
script,filename = argv                      #把argv进行解包，第一个参数传入script，第二个参数传入filename
txt = open(filename)                        #根据filename，打开这个文件
print(f"Here's your file {filename}:")      #输出“Here's your file 文件名”
print(txt.read())                           #txt.read()，输出文件里面的内容
print("Type the filename again:")           #输出“Type the filename again:”
file_again:str = str(input("> "))           #创建一个变量file_again
txt_again = open(file_again)                #创建txt_again文件变量，用open函数打开file_again后赋值给txt_again
print(txt_again.read())                     #输出txt_again文件里面的内容